home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / FileWriter.h < prev    next >
Text File  |  1997-06-28  |  517b  |  29 lines

  1. // FileWriter.h
  2.  
  3. #ifndef FileWriter_h
  4. #define FileWriter_h
  5.  
  6. #ifndef ConstData_h
  7. #include "ConstData.h"
  8. #endif
  9.  
  10. class FileAccessPath;
  11. class ConstBuffer;
  12.  
  13. class FileWriter: private ParamBlockRec
  14.   {
  15.     private:
  16.         void ThrowError( OSErr );
  17.         
  18.     public:
  19.         FileWriter( const FileAccessPath&, uint32 position = 0 );
  20.         
  21.         uint32 Position() const                { return ioParam.ioPosOffset; }
  22.         void SetPosition( uint32 p )        { ioParam.ioPosOffset = p; }
  23.         
  24.         void operator<<( ConstData );
  25.         uint32 operator<<( ConstBuffer& );
  26.   };
  27.  
  28. #endif
  29.